import Vue from 'vue';
import Router from 'vue-router';
import { routes } from './routes/index';
Vue.use(Router);

export default new Router({
  routes: [
    {
      name: 'default',
      path: '',
      redirect: '/home'
    },
    ...routes,
    {
      path: '*',
      redirect: '/404'
    }
  ]
});
